diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-11 10:22:11 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-11 14:09:27 +0700 |
| commit | 23f67959168cd0126582c44f2a5b1bfdc45b268a (patch) | |
| tree | a5a612967c92f52ccdf2081402822e5e29fe66a1 /src/pages/shop/category/[slug].jsx | |
| parent | 5b45d6ac182fcbe9d6e235a227688e0ae60869d9 (diff) | |
Add breadcrumb on detail product, search, brand, category page
Diffstat (limited to 'src/pages/shop/category/[slug].jsx')
| -rw-r--r-- | src/pages/shop/category/[slug].jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pages/shop/category/[slug].jsx b/src/pages/shop/category/[slug].jsx index dbc17c06..e3650235 100644 --- a/src/pages/shop/category/[slug].jsx +++ b/src/pages/shop/category/[slug].jsx @@ -3,6 +3,7 @@ import { getIdFromSlug, getNameFromSlug } from '@/core/utils/slug' import { useRouter } from 'next/router' import _ from 'lodash' import Seo from '@/core/components/Seo' +import Breadcrumb from '@/lib/category/components/Breadcrumb' const BasicLayout = dynamic(() => import('@/core/components/layouts/BasicLayout')) const ProductSearch = dynamic(() => import('@/lib/product/components/ProductSearch')) @@ -16,6 +17,7 @@ export default function CategoryDetail() { const query = { fq: `manufacture_id_i:${categoryId}` } + return ( <BasicLayout> <Seo @@ -29,6 +31,8 @@ export default function CategoryDetail() { ]} /> + <Breadcrumb categoryId={categoryId} /> + {!_.isEmpty(router.query) && ( <ProductSearch query={query} prefixUrl={`/shop/category/${slug}`} /> )} |
